<link href="../../plugins/YunUI/yun.css" rel="stylesheet" />
<link href="../../css/admin.css" rel="stylesheet" />
<div class="box">
	<div>
		<form>
			<input type="hidden" id="id" name="id" value="${model.id}" />
			<div class="col-12">
				<label class="col-2 text-right">模板类别：</label>
				<select id="type_id" name="type_id" class="form-select col-10">
						<option value="0">==请选择==</option>
						<% for(item in typeList){
							if(item.id==model.type_id){ %>
								<option selected="selected" value="<% print(item.id); %>"><% print(item.name); %></option>
							<% }else{ %>
								<option value="<% print(item.id); %>"><% print(item.name); %></option>
							<%}
						}%>
					</select>
			</div>
			<div class="col-12">
				<label for="name" class="col-2 text-right">名称：</label>
				<input type="text" id="name" name="name" class="form-input col-10" value="${model.name}" />
			</div>
			<div class="col-12">
				<label for="code" class="col-2 text-right">代码：</label>
				<input type="text" id="code" name="code" class="form-input col-10" value="${model.code}" />
			</div>
			<div class="col-12">
				<label for="url" class="col-2 text-right">访问链接：</label>
				<input type="text" id="url" name="url" class="form-input col-10" value="${model.url}" />
			</div>
			<div class="col-12">
				<label for="url" class="col-2 text-right">创建人：</label>
				<input type="text" id="author" name="author" class="form-input col-10" value="${model.author}" />
			</div>
			<div class="col-12">
				<label for="seq" class="col-2 text-right">显示顺序：</label>
				<input type="number" id="seq" name="seq" class="form-input col-10" value="${model.seq}" />
			</div>
			<div class="col-12">
				<label class="col-2 text-right">状态：</label>
				<select id="status" name="status" class="form-select col-10">
					<option ${model.status==1?"selected='selected'":""} value="1">启用</option>
					<option ${model.status==0?"selected='selected'":""} value="0">隐藏</option>
				</select>
			</div>
		</form>
	</div>
</div>